<template>
	<view class="content">
		<image class="logo" src="/static/images/logo.png"></image>
		<view>
			<text @click="ck" class="title">{{title}}-{{testname}}--{{gtest}}</text>
		</view>
		<view @click="cls" class="text-danger">
========>>>
		</view>

		<view @click="ffs">
ffs
<i class="iconfont-remix  icon-remix-hongbao1"></i>
		</view>
	</view>
</template>

<script>
	import {
        mapMutations,
        mapGetters,
        mapActions,
        mapState,
	} from 'vuex';
	
	export default {
		computed: {
			...mapState('test', ['testname']),
			...mapGetters('test', ['gtest']),
		},
		created(){
			// console.log(this.$Router,'---->>>', this.$store, 'ak', this.$sessionStorage, 'amd',this.$store.state.test.testname,'api=',this.$api)
			
			this.$api.getHello.test({
				a:1,
			}).then((res)=>{
				console.log(res);
			})
		},
		data() {
			return {
				title: 'Hello11'
			}
		},
		onLoad() {

		},
		methods: {
			...mapActions('test', ['admintest']),
			ck(){
				this.$Router.push({
					path: '/pages/test/index',
				})
			},
			cls(){
				// console.log('---->')
				this.admintest();
			},
			ffs(){
				this.$Router.push({
					path: '/subtestpackages/testmodel/index',
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		background: $test-color !important;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
